package com.lyy.king.common.rpc.annotations;

import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;

/**
 * LearningApiInterface注解的扫描器
 */
public class LearningApiInterfaceScanner extends ClassPathScanningCandidateComponentProvider {

    public LearningApiInterfaceScanner(boolean useDefaultFilters) {
        super(useDefaultFilters);
    }

    @Override
    protected boolean isCandidateComponent(AnnotatedBeanDefinition beanDefinition) {
        return beanDefinition.getMetadata().isInterface();
    }
}